package com.dms.modules.payment.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dms.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 支付宝订单实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("alipay_order")
@ApiModel(value = "AlipayOrder", description = "支付宝订单实体")
public class AlipayOrder extends BaseEntity {

    /**
     * 订单编号
     */
    private String orderNo;

    @ApiModelProperty("商户订单号")
    private String outTradeNo;

    @ApiModelProperty("支付宝交易号")
    private String tradeNo;

    @ApiModelProperty("订单总金额")
    private String totalAmount;

    @ApiModelProperty("实收金额")
    private String receiptAmount;

    @ApiModelProperty("买家支付宝用户号")
    private String buyerId;

    @ApiModelProperty("买家支付宝账号")
    private String buyerLogonId;

    @ApiModelProperty("交易状态")
    private String tradeStatus;

    /**
     * 支付时间
     */
    private LocalDateTime payTime;

    /**
     * 交易内容
     */
    private String subject;

    /**
     * 商户ID
     */
    private Long merchantId;

    @ApiModelProperty("用户ID")
    private Long userId;
} 